#canvas1{
    position:absolute;
    width:500px;
    height:800px;
    border:1px solid #333;
    left:50%;
    top:50%;
    transform: translate(-50%,-50%);
}
img{
    display: none;
}